import Layout from '@/layout'

const basicInfoRouter = [
  {
    path: '/basicinfo/parts',
    component: Layout,
    meta: { title: '部件管理', icon: 'icon_part' },
    children: [
      {
        path: '/basicinfo/parts/index',
        component: () => import('@/views/basicinfo/parts/index/index'),
        meta: { title: '部件管理' }
      },
      {
        path: '/basicinfo/parts/type',
        component: () => import('@/views/basicinfo/parts/type/index'),
        meta: { title: '部件类型设置' }
      }
    ]
  },
  {
    path: '/basicinfo/device',
    component: Layout,
    children: [
      {
        path: '/basicinfo/device',
        component: () => import('@/views/basicinfo/device'),
        meta: { title: '设备管理', icon: 'icon_device' }
      }
    ]
  },
  {
    path: '/basicinfo/basicdata',
    component: Layout,
    meta: { title: '基础数据', icon: 'icon_base' },
    children: [
      {
        path: '/basicinfo/basicdata/resident',
        component: () => import('@/views/basicinfo/basicdata/resident/index'),
        meta: { title: '居民注册' }
      },
      {
        path: '/basicinfo/basicdata/bbsTopic',
        component: () => import('@/views/basicinfo/basicdata/bbsTopic/index'),
        meta: { title: '环境圈消息' }
      },
      {
        path: '/basicinfo/basicdata/car',
        component: () => import('@/views/basicinfo/basicdata/car/index'),
        meta: { title: '车辆管理' }
      },
      {
        path: '/basicinfo/basicdata/account',
        component: () => import('@/views/basicinfo/basicdata/account/index'),
        meta: { title: '人员管理' }
      },
      {
        path: '/basicinfo/basicdata/qualityStandard',
        component: () => import('@/views/basicinfo/basicdata/qualityStandard/index'),
        meta: { title: '质量标准' }
      }
    ]
  },
  {
    path: '/basicinfo/system',
    component: Layout,
    meta: { title: '系统设置', icon: 'icon_system' },
    children: [
      {
        path: '/basicinfo/system/role',
        component: () => import('@/views/basicinfo/system/role'),
        meta: { title: '角色权限' }
      },
      {
        path: '/basicinfo/system/organization',
        component: () => import('@/views/basicinfo/system/organization'),
        meta: { title: '组织架构' }
      }
      // {
      //   path: '/basicinfo/system/resource',
      //   component: () => import('@/views/basicinfo/system/resource'),
      //   meta: { title: '资源配置' }
      // }
    ]
  },
  { path: '*', redirect: '/404', hidden: true }
]

export default basicInfoRouter
